package com.ruoyi.project.digital.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.project.digital.domain.enums.IsInitEmum;
import com.ruoyi.project.digital.domain.enums.IsLineEmum;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 用户对象 t_user
 *
 * @author ruoyi
 * @date 2023-10-28
 */
@TableName("t_user")
@Data
public class TUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 0 不在线，1在线 */
    @Excel(name = "0 不在线，1在线")
    private String isLine;

    private String userName;

    /** 会员等级 */
    @Excel(name = "会员等级")
    private Long levelNum;

    /** 体力值 */
    @Excel(name = "体力值")
    private Long stamina;

    @Excel(name = "剩余体力值")
    private Long resStamina;

    /** 微信openId */
    @Excel(name = "微信openId")
    private String openId;

    /** 心情id */
    @Excel(name = "心情id")
    private Long moodId;

    /** 心情ID的锁 */
    @Excel(name = "心情ID的锁")
    private String moodIdVersion;

    /** 当前背景 */
    @Excel(name = "当前背景")
    private String backGroup;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nickName;

    /** 是否完成初始任务，0未完成，1已完成 */
    @Excel(name = "是否完成初始任务，0未完成，1已完成")
    private String isInit;


    @TableField(exist = false)
    private IsInitEmum isInitEnum;

    @TableField(exist = false)
    private IsLineEmum islineEnum;


    private String password;
    /** 头像 */
    @Excel(name = "头像")
    private String avterImg;

    /** $column.columnComment */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    @TableField(exist = false)
    private String moodName;

    private String weixinId;

    private String qqId;

    public void setLevelNum(Long levelNum)
    {
        this.levelNum = levelNum;
    }

    public Long getLevelNum()
    {
        return levelNum;
    }
    public void setStamina(Long stamina)
    {
        this.stamina = stamina;
    }

    public Long getStamina()
    {
        return stamina;
    }
    public void setOpenId(String openId)
    {
        this.openId = openId;
    }

    public String getOpenId()
    {
        return openId;
    }
    public void setMoodId(Long moodId)
    {
        this.moodId = moodId;
    }

    public Long getMoodId()
    {
        return moodId;
    }
    public void setMoodIdVersion(String moodIdVersion)
    {
        this.moodIdVersion = moodIdVersion;
    }

    public String getMoodIdVersion()
    {
        return moodIdVersion;
    }
    public void setBackGroup(String backGroup)
    {
        this.backGroup = backGroup;
    }

    public String getBackGroup()
    {
        return backGroup;
    }
    public void setNickName(String nickName)
    {
        this.nickName = nickName;
    }

    public String getNickName()
    {
        return nickName;
    }

    public void setAvterImg(String avterImg)
    {
        this.avterImg = avterImg;
    }

    public String getAvterImg()
    {
        return avterImg;
    }
    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("isLine", getIsLine())
            .append("levelNum", getLevelNum())
            .append("stamina", getStamina())
            .append("openId", getOpenId())
            .append("moodId", getMoodId())
            .append("moodIdVersion", getMoodIdVersion())
            .append("backGroup", getBackGroup())
            .append("nickName", getNickName())
            .append("isInit", getIsInit())
            .append("avterImg", getAvterImg())
            .append("id", getId())
            .toString();
    }


}
